package com.yape.dao;

import com.yape.po.StockNews;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author yape
 * @description
 * @date 2025/5/24 22:23
 */
@Mapper
public interface IStockNewsDao {

    List<StockNews> queryStockNews();

    /**
     * 批量插入股票快讯数据
     * @param newsList 快讯数据列表
     * @return 插入条数
     */
    int batchInsert(List<StockNews> newsList);

    /**
     * 清空当日数据
     */
    void clearTodayData();

    StockNews selectLatestNews();
}
